package com.lfd.service.impl;



import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lfd.mapper.InformationMapper;
import com.lfd.mapper.UserMapper;
import com.lfd.service.InformationServise;
import com.lfd.service.UserServise;
import com.lfd.util.UserUtil;
import com.lfd.entity.Infor;
import com.lfd.entity.User;


@Service
public class InformationServiceImpl implements InformationServise {
	@Autowired
	private InformationMapper informationMapper;

	@Override
	public List<Infor> su(Infor infor) {
		Long id = UserUtil.getId();
		infor.setUserid(id);
	List<Infor> su = informationMapper.su(id, infor);
		return su;
	}

	@Override
	public void updatesu(Infor infor) {
		informationMapper.updatesu(infor);
		
	}

	

	

	
}
